home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / ARMLINUX / MAIL / 9806 / 000350_owner-linux-arm…r.rutgers.edu _Mon Jun 29 19:34:56 1998.msg < prev    next >
Internet Message Format  |  1998-06-30  |  5KB

  1. Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
  2. Received: from virtual.bbc.co.uk (virtual.bbc.co.uk [132.185.132.199])
  3.     by odie.barnet.ac.uk (8.8.6/8.8.6) with ESMTP id TAA22909
  4.     for <willy@odie.barnet.ac.uk>; Mon, 29 Jun 1998 19:34:55 +0100
  5. Received: from nic.funet.fi (nic.funet.fi [128.214.248.6])
  6.     by virtual.bbc.co.uk (8.8.5/8.8.5) with ESMTP id TAA23555
  7.     for <willy@bofh.ai>; Mon, 29 Jun 1998 19:35:03 +0100 (BST)
  8. Received: from vger.rutgers.edu ([128.6.190.2]:22084 "EHLO vger.rutgers.edu" ident: "root") by nic.funet.fi with ESMTP id <1632-14900>; Mon, 29 Jun 1998 21:33:59 +0300
  9. Received: by vger.rutgers.edu id <971264-3822>; Mon, 29 Jun 1998 13:55:42 -0400
  10. Received: from tazenda.demon.co.uk ([158.152.220.239]:2259 "HELO kings-cross.london.uk.eu.org" ident: "TIMEDOUT2") by vger.rutgers.edu with SMTP id <971277-3822>; Mon, 29 Jun 1998 13:51:00 -0400
  11. Received: from kings-cross.london.uk.eu.org [127.0.0.1] (phil)
  12.     by kings-cross.london.uk.eu.org with esmtp (Exim 1.71 #1)
  13.     id 0yqiYf-0000ZG-00; Mon, 29 Jun 1998 19:21:41 +0100
  14. X-Mailer: exmh version 2.0zeta 7/24/97
  15. To: linux-arm@vger.rutgers.edu
  16. Subject: siglist
  17. Mime-Version: 1.0
  18. Content-Type: text/plain; charset=us-ascii
  19. Date:     Mon, 29 Jun 1998 19:21:41 +0100
  20. From: Philip Blundell <philb@gnu.org>
  21. Message-Id: <E0yqiYf-0000ZG-00@kings-cross.london.uk.eu.org>
  22. X-Orcpt: rfc822;linux-arm@vger.rutgers.edu
  23. Sender: owner-linux-arm@vger.rutgers.edu
  24. Precedence: bulk
  25. X-Loop: majordomo@vger.rutgers.edu
  26. Status: RO
  27.  
  28. Here's the patch for the siglist .type problem that I forgot.  I'm still 
  29. considering whether to put this in or fix it in GAS.  Anyway, it should do 
  30. the trick for now.
  31.  
  32. (I'm not quite sure why I didn't use ASM_TYPE_DIRECTIVE though I have a feeling 
  33. there was a reason at the time.)
  34.  
  35. p.
  36.  
  37. --- /dev/null    Sun Oct 12 19:38:15 1997
  38. +++ libc/sysdeps/unix/sysv/linux/arm/siglist.c    Sat May 23 14:22:57 1998
  39. @@ -0,0 +1,75 @@
  40. +/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
  41. +   This file is part of the GNU C Library.
  42. +
  43. +   The GNU C Library is free software; you can redistribute it and/or
  44. +   modify it under the terms of the GNU Library General Public License as
  45. +   published by the Free Software Foundation; either version 2 of the
  46. +   License, or (at your option) any later version.
  47. +
  48. +   The GNU C Library is distributed in the hope that it will be useful,
  49. +   but WITHOUT ANY WARRANTY; without even the implied warranty of
  50. +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  51. +   Library General Public License for more details.
  52. +
  53. +   You should have received a copy of the GNU Library General Public
  54. +   License along with the GNU C Library; see the file COPYING.LIB.  If not,
  55. +   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  56. +   Boston, MA 02111-1307, USA.  */
  57. +
  58. +#include <stddef.h>
  59. +#include <signal.h>
  60. +#include <sizes.h>
  61. +
  62. +#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
  63. +# define SYS_SIGLIST    __new_sys_siglist
  64. +# define SYS_SIGABBREV    __new_sys_sigabbrev
  65. +#else
  66. +# define SYS_SIGLIST    _sys_siglist
  67. +# define SYS_SIGABBREV    _sys_sigabbrev
  68. +#endif
  69. +
  70. +#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
  71. +asm (".data; .globl __old_sys_siglist;  __old_sys_siglist:");
  72. +#endif
  73. +
  74. +const char *const SYS_SIGLIST[NSIG] =
  75. +{
  76. +#define init_sig(sig, abbrev, desc)   [sig] desc,
  77. +#include "siglist.h"
  78. +#undef init_sig
  79. +};
  80. +
  81. +#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
  82. +asm (".type __old_sys_siglist,%object;.size __old_sys_siglist,"
  83. +        OLD_SIGLIST_SIZE_STR "*" PTR_SIZE_STR);
  84. +
  85. +asm (".data; .globl __old_sys_sigabbrev;  __old_sys_sigabbrev:");
  86. +#endif
  87. +
  88. +const char *const SYS_SIGABBREV[NSIG] =
  89. +{
  90. +#define init_sig(sig, abbrev, desc)   [sig] abbrev,
  91. +#include "siglist.h"
  92. +#undef init_sig
  93. +};
  94. +
  95. +#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
  96. +asm (".type __old_sys_sigabbrev,%object;.size __old_sys_sigabbrev,"
  97. +        OLD_SIGLIST_SIZE_STR "*" PTR_SIZE_STR);
  98. +
  99. +extern const char *const *__old_sys_siglist;
  100. +extern const char *const *__old_sys_sigabbrev;
  101. +
  102. +strong_alias (__old_sys_siglist, _old_sys_siglist)
  103. +symbol_version (__old_sys_siglist, _sys_siglist, GLIBC_2.0);
  104. +symbol_version (_old_sys_siglist, sys_siglist, GLIBC_2.0);
  105. +symbol_version (__old_sys_sigabbrev, sys_sigabbrev, GLIBC_2.0);
  106. +
  107. +strong_alias (__new_sys_siglist, _new_sys_siglist)
  108. +default_symbol_version (__new_sys_siglist, _sys_siglist, GLIBC_2.1);
  109. +default_symbol_version (_new_sys_siglist, sys_siglist, GLIBC_2.1);
  110. +default_symbol_version (__new_sys_sigabbrev, sys_sigabbrev, GLIBC_2.1);
  111. +#else
  112. +weak_alias (_sys_siglist, sys_siglist)
  113. +weak_alias (_sys_sigabbrev, sys_sigabbrev)
  114. +#endif
  115.  
  116.  
  117. unsubscribe: body of `unsubscribe linux-arm' to majordomo@vger.rutgers.edu